@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">找回密码</div>

                <div class="panel-body">
                    @if (session('status'))
                        <div class="alert alert-success">
                            {{ session('status') }}
                        </div>
                    @endif
                        @include('Common._messages')
                    <form class="form-horizontal" method="POST" action="{{ route('password.mobile') }}">
                        {{ csrf_field() }}

                        <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
                            <label for="email" class="col-md-4 control-label">用户名 / 手机号码：</label>

                            <div class="col-md-6">
                                <input id="mobile" type="login" class="form-control" name="login" value="{{ old('login') }}" required>

                                @if ($errors->has('name'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('name') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group {{ $errors->has('captcha') ? ' has-error' : '' }} ">
                            <label for="captcha" class="col-md-4 control-label">验证码</label>

                            <div class="col-md-3">
                                <input id="captcha" class="form-control" name="captcha" >


                                @if ($errors->has('captcha'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('captcha') }}</strong>
                                    </span>
                                @endif
                            </div>
                            <div class="col-md-2">
                                <img class="thumbnail captcha" src="{{ captcha_src('mini') }}" onclick="this.src='/captcha/mini?'+Math.random()" title="点击图片重新获取验证码">

                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-3 col-md-offset-4">
                                <button type="submit" class="btn btn-primary btn-block">
                                    确定
                                </button>

                            </div>
                            <div class="col-md-1 col-md-offset-1">
                                <button type="button" class="btn btn-link">

                                </button>

                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

